package jhelper;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.io.*;
/**
 *
 * @author Administrator
 */
class readFileDemo {
    public static void main(String[] args) throws FileNotFoundException, IOException {
        File file =new File("text.txt");
        FileReader f=new  FileReader(file);
        BufferedReader b=new  BufferedReader(f);
        String temp =null;
        while((temp=b.readLine())!=null){
            System.out.println(temp);
        }
        System.out.println("*********文件结束**********");
    }

}
